<?php 
if (!isset($_SESSION))
{
	ob_start();
	session_start();
}
//local
///*
$host = 'localhost'; 
$user = 'root'; 
$pass = '';
$dbname = 'spm-itats';

$connect = mysql_connect($host, $user, $pass) or die("KONEKSI GAGAL");
 
$dbselect = mysql_select_db($dbname) or die ("DATABASE GAGAL");
//*/

//upload
/*
$host = 'mysql.idhostinger.com'; 
$user = 'u293187616_root'; 
$pass = '45411427';
$dbname = 'u293187616_spm';

$connect = mysql_connect($host, $user, $pass) or die("KONEKSI GAGAL");
 
$dbselect = mysql_select_db($dbname) or die ("DATABASE GAGAL");
//*/
?>